package com.lebang.common;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 全局锁
 * @author xuweijie
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MemberLock {
    boolean required() default true;
    boolean automaticRelease() default true;
    int ttl() default 5000;
}
